/* GENERAL TEXT */

.item-content {
  font-size: 16px;
}

.item-content p {
  margin-bottom: 7px;
}

.item-content h2 {
}

/* ------------------------------------------------------------------------------- */

/* ================================
   ПРИМЕЧАНИЯ (admonitions)
   ================================ */
.item-content .l-admonition {
  margin: 1.4em 0;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid #e8eef8;
  background: #f8fafc;

  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;

  font-size: 0.94rem;
  line-height: 1.6;
  color: #0b1320;
}

/* Иконка слева */
.item-content .l-admonition i {
  font-size: 18px;
  line-height: 1;
  margin-top: 3px; /* визуальное выравнивание с заголовком */
}

/* Обёртка текста */
.item-content .l-admonition__body {
  min-width: 0; /* чтобы длинные ссылки не ломали сетку */
}

/* Заголовок блока: "Примечание:", "Обратите внимание!" */
.item-content .l-admonition__title {
  font-weight: 600;
  margin-bottom: 0.25em;
  color: #0b1320; /* базовый цвет, если тип не задан */
}

/* Текст внутри */
.item-content .l-admonition__text {
  margin: 0;
}

/* Абзацы внутри текста подсказки */
.item-content .l-admonition__text p {
  margin: 0.3em 0 0;
}

/* Если внутри есть списки */
.item-content .l-admonition__text ul,
.item-content .l-admonition__text ol {
  margin: 0.3em 0 0 1.2em;
}

/* Полужирный внутри текста (не заголовок) */
.item-content .l-admonition__text strong {
  font-weight: 600;
}

/* Ссылки внутри подсказки (по желанию можно убрать, если глобальный стиль ок) */
.item-content .l-admonition a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Варианты блоков по типу */

/* Информационный блок (note) */
.item-content .l-admonition--note {
  border-left: 4px solid #3b82f6;
}

.item-content .l-admonition--note i {
  color: #2563eb;
}

/* Цвет заголовка для note */
.item-content .l-admonition--note .l-admonition__title {
  color: #1d4ed8; /* синий 700 */
}

/* Подсказка / совет (tip) */
.item-content .l-admonition--tip {
  border-left: 4px solid #10b981;
  background: #f3fcf7;
}

.item-content .l-admonition--tip i {
  color: #059669;
}

/* Цвет заголовка для tip */
.item-content .l-admonition--tip .l-admonition__title {
  color: #047857; /* зелёный 700 */
}

/* Предупреждение / важно (warning) */
.item-content .l-admonition--warning {
  border-left: 4px solid #f59e0b;
  background: #fff8eb;
}

.item-content .l-admonition--warning i {
  color: #d97706;
}

/* Цвет заголовка для warning */
.item-content .l-admonition--warning .l-admonition__title {
  color: #b45309; /* янтарный 700 */
}

/* Критичный / опасный блок (danger) */
.item-content .l-admonition--danger {
  border-left: 4px solid #ef4444;
  background: #fef2f2;
}

.item-content .l-admonition--danger i {
  color: #b91c1c;
}

/* Цвет заголовка для danger */
.item-content .l-admonition--danger .l-admonition__title {
  color: #b91c1c; /* красный 700 */
}

/* Адаптация под узкие экраны (по желанию) */
@media (max-width: 640px) {
  .item-content .l-admonition {
    padding: 0.9rem 0.9rem;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    font-size: 0.92rem;
  }
}


/* PAGE SEARCH */
.db-search {
  grid-column: 1 / 13;
}

.db-search-header {
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
}

.db-search-title {
}

.db-search-title h1 {
  font-size: 24px;
  font-weight: bold;
}

.db-search-form {
}

.db-search-content {
  margin-top: 20px;
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
}

.db-search__field {
  width: 100%;
}

.db-search__input {
  width: 100%;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid rgb(49, 111, 238);
  /* общий инпут вне «большой» обёртки */
}

/* переключатель (раньше вкладки над строкой) */
.db-scope {
  display: flex;
  gap: 24px;
  align-items: flex-end;
  padding: 0 6px;
}

.db-scope__tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: #6b7280;
  padding: 10px 18px;
  border-radius: 14px 14px 0 0;
  cursor: pointer;
}

.db-scope__tab.is-active {
  color: #fff;
  background: rgb(49, 111, 238);
  box-shadow: 0 2px 0 0 rgb(49, 111, 238);
}

/* одна большая строка поиска с синей рамкой и кнопкой справа */
.db-search__inputwrap--big {
  position: relative;
  margin-top: -2px;
  /* подлезаем под активную вкладку */
  border: 3px solid rgb(49, 111, 238);
  border-radius: 18px;
  background: #ffffff;
}

.db-search__inputwrap--big .db-search__input {
  width: 100%;
  border: 0;
  /* переопределяет общий стиль выше */
  outline: none;
  background: transparent;
  color: #111111;
  padding: 18px 96px 18px 18px;
  font-size: 22px;
  line-height: 1.3;
}

.db-search__submit {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: rgb(49, 111, 238);
  font-weight: 600;
  font-size: 20px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 10px;
}

.db-search__submit:hover {
  text-decoration: underline;
}

/* выпадающая панель разделов — единым блоком с рамкой строки */
.db-sections-panel {
  border: 3px solid rgb(49, 111, 238);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  background: #ffffff;
  margin-top: -3px;
  padding: 14px;
}

.db-sections-grid {
  display: grid;
  gap: 8px 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.db-sections__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 10px;
}

.db-sections__item input {
  width: 18px;
  height: 18px;
}

.db-sections-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.db-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}

.db-btn--primary {
  background: rgb(49, 111, 238);
  color: #fff;
  border: 1px solid rgb(49, 111, 238);
}

.db-btn--ghost {
  background: transparent;
  color: rgb(49, 111, 238);
  border: 1px solid rgb(49, 111, 238);
}

.db-search__sort {
  display: inline-block;
  margin-top: 20px;
}

.db-search__bar {
  position: relative;
  overflow: visible;
  z-index: 20;
}

.l-section-cat-sort {
  position: relative;
}

.l-section-cat-sort__menu {
  z-index: 1000;
}

.db-search__hint {
  text-align: center;
  padding: 20px 0 20px 0;
}

/* табы разделов над результатами */
.db-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0;
  border-bottom: 1px solid #e6e8ef;
  /* бывший --db-border */
  padding-bottom: 6px;
}

.db-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
  background: #f4f5f7;
  /* бывший --db-chip-bg */
  border: 1px solid transparent;
}

.db-tab:hover {
  border-color: #e6e8ef;
}

/* бывший --db-border */
.db-tab.is-active {
  background: #e8eefc;
  /* бывший --db-chip-active-bg */
  border-color: rgba(49, 111, 238, 0.25);
  /* вместо color-mix */
}

.db-tab__count {
  font-size: 0.85em;
  opacity: 0.7;
}

/* адаптив для «большой» строки */
@media (max-width: 720px) {
  .db-search__inputwrap--big {
    padding-right: 6px;
  }

  .db-search__inputwrap--big .db-search__input {
    padding-right: 86px;
    font-size: 18px;
  }
}

/* ------------------------------------------------------------------------------- */

/* CATEGORY SORT */
.l-section-cat-sort {
  --r: 12px;
  --pad: 12px;
  --bg: #fff;
  --bg-hover: #eaf2ff;
  --bg-active: #e3efff;
  --border: #e6e6e6;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  position: relative;
  display: inline-block;
  font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Кнопка */
.l-section-cat-sort__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  cursor: pointer;
  user-select: none;
}

.l-section-cat-sort__btn:focus-visible {
  outline: 2px solid #8ab4ff;
  outline-offset: 2px;
}

.l-section-cat-sort__caret {
  transition: transform 0.15s ease;
}

.l-section-cat-sort.is-open .l-section-cat-sort__caret {
  transform: rotate(180deg);
}

/* Меню строго под кнопкой */
.l-section-cat-sort__menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  min-width: 260px;
  max-width: min(320px, calc(100vw - 24px));
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 50;
}

.l-section-cat-sort.is-open .l-section-cat-sort__menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Список и пункты */
.l-section-cat-sort__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.l-section-cat-sort__option {
  padding: 12px var(--pad);
  cursor: pointer;
  white-space: nowrap;
}

.l-section-cat-sort__option:hover {
  background: var(--bg-hover);
}

.l-section-cat-sort__option.is-selected {
  background: var(--bg-active);
}

.l-section-cat-sort__option:focus-visible {
  outline: 2px solid #8ab4ff;
  outline-offset: -2px;
}

@media (max-width: 480px) {
  .l-section-cat-sort__menu {
    min-width: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .l-section-cat-sort__menu,
  .l-section-cat-sort__caret {
    transition: none;
  }
}

/* SECTION CATEGORY FILTER */
/* Контейнер и кнопка */
.l-section-cat-filter {
  position: relative;
}

.l-section-cat-filter__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--ui-border, #e5e7eb);
  background: #fff;
  color: #111827;
  cursor: pointer;
  line-height: 1;
  position: relative;
  overflow: hidden;
}

.l-section-cat-filter__btn:hover {
  background: #f9fafb;
}

.l-section-cat-filter__btn[aria-expanded="true"] {
  border-color: var(--ui-accent, #2563eb);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 12%);
}

.l-section-cat-filter__badge[hidden] {
  display: none !important;
}

.l-section-cat-filter__badge {
  margin-left: 4px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--ui-accent, #2563eb);
  color: #fff;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Меню (sheet) */
.l-section-cat-filter__menu {
  position: absolute;
  z-index: 50;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  width: min(100vw - 32px, 960px);
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--ui-border, #e5e7eb);
  border-radius: 16px;
  box-shadow: 0 20px 50px -20px rgb(0 0 0 / 25%);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.l-section-cat-filter.is-open .l-section-cat-filter__menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Шапка, тело, подвал */
.lscf__header,
.lscf__footer {
  position: sticky;
  background: #fff;
  z-index: 1;
}

.lscf__header {
  top: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--ui-border, #e5e7eb);
  display: flex;
  align-items: center;
  gap: 12px;
}

.lscf__title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.lscf__search {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--ui-border, #e5e7eb);
  border-radius: 10px;
  max-width: 320px;
  width: 100%;
}

.lscf__search input {
  border: 0;
  outline: 0;
  width: 100%;
  font-size: 14px;
  background: transparent;
}

.lscf__body {
  padding: 14px 16px;
  max-height: min(70vh, 560px);
  overflow: auto;
  display: grid;
  gap: 18px;
}

.lscf__footer {
  bottom: 0;
  padding: 12px 16px;
  border-top: 1px solid var(--ui-border, #e5e7eb);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Кнопки действий */
.l-section-cat-filter__reset,
.l-section-cat-filter__apply {
  appearance: none;
  border: 1px solid var(--ui-border, #e5e7eb);
  background: #fff;
  color: #111827;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
}

.l-section-cat-filter__apply {
  background: var(--ui-accent, #2563eb);
  border-color: var(--ui-accent, #2563eb);
  color: #fff;
}

.l-section-cat-filter__reset:hover {
  background: #f9fafb;
}

.l-section-cat-filter__apply:hover {
  filter: brightness(0.97);
}

/* Группы */
.lscf-group {
  display: grid;
  gap: 10px;
}

.lscf-group__title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #4b5563;
  margin: 0;
}

/* ЧЕК-ЛИСТ КАТЕГОРИЙ (кастомный чекбокс единый везде) */
.lscf-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.lscf-checklist__item {
  list-style: none;
}

.lscf-check {
  display: grid;
  grid-template-columns: 20px 22px 1fr;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.lscf-check__input {
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1.5px solid var(--ui-border, #d1d5db);
  border-radius: 6px;
  background: #fff;
  display: grid;
  place-content: center;
  transition: border-color 0.15s ease, background-color 0.15s ease,
    box-shadow 0.15s ease;
}

.lscf-check__input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgb(37 99 235 / 25%);
}

.lscf-check__input::after {
  content: "";
  width: 10px;
  height: 10px;
  transform: scale(0);
  transition: transform 0.12s ease;
  clip-path: polygon(14% 53%, 0 67%, 35% 100%, 100% 28%, 86% 14%, 35% 76%);
  background: #fff;
}

.lscf-check__input:checked {
  background: var(--ui-accent, #2563eb);
  border-color: var(--ui-accent, #2563eb);
}

.lscf-check__input:checked::after {
  transform: scale(1);
}

.lscf-check__box {
  display: none;
}

/* декоративный спан не нужен при таком подходе */
.lscf-check__ico {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lscf-check__ico img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lscf-check__ico i {
  font-size: 18px;
  color: #111827;
}

.lscf-check__label {
  font-size: 14px;
  color: #111827;
}

.lscf-empty {
  margin: 6px 0 0;
  font-size: 13px;
  color: #6b7280;
}

/* ЧИПЫ ДЛЯ ТИПОВ */
.lscf-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.lscf-chip__input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.lscf-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid var(--ui-border, #e5e7eb);
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.lscf-chip:hover {
  background: #f9fafb;
}

.lscf-chip__input:checked + .lscf-chip {
  background: var(--ui-accent, #2563eb);
  border-color: var(--ui-accent, #2563eb);
  color: #fff;
}

/* Ripple для кнопки */
.l-section-cat-filter__ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.25;
  transform: scale(0);
  background: currentColor;
  animation: lscf-ripple 0.6s ease-out forwards;
}

@keyframes lscf-ripple {
  to {
    transform: scale(1);
    opacity: 0;
  }
}

/* Мобайл: панель во весь экран */
@media (max-width: 768px) {
  .l-section-cat-filter__menu {
    position: fixed;
    inset: 12px;
    width: auto;
    left: 12px;
    right: 12px;
    top: 12px;
  }
}

.l-section-cat-sort__btn,
.l-section-cat-filter__btn {
  -webkit-tap-highlight-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 8px 12px;
  /* md */
  min-height: 36px;
  /* единая высота */
  min-width: 36px;
  border: 1px solid #e6eaf2;
  /* единая рамка */
  border-radius: 12px;
  /* единый радиус */
  background-color: transparent;
  /* нет фона в покое */
  color: #0f172a;

  font: 500 14px/1.1 system-ui, -apple-system, "Segoe UI", Roboto, Arial,
    sans-serif;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;

  transition: background-color 0.24s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.24s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.24s cubic-bezier(0.4, 0, 0.2, 1), transform 0.06s ease;

  box-shadow: 0 1px 0 rgba(2, 6, 23, 0.06), 0 2px 6px rgba(2, 6, 23, 0.04);
}

/* ЕДИНЫЙ hover — насыщенный и плавный */
.l-section-cat-sort__btn:hover,
.l-section-cat-filter__btn:hover {
  background-color: #eaf4ff;
  /* заметная заливка */
  border-color: #cfe3fb;
}

/* Active */
.l-section-cat-sort__btn:active,
.l-section-cat-filter__btn:active {
  transform: translateY(1px) scale(0.99);
}

/* Focus (брендовый) */
.l-section-cat-sort__btn:focus-visible,
.l-section-cat-filter__btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(36, 147, 233, 0.22), inset 0 0 0 1.5px #2493e9;
}

/* Состояние раскрытия — подчёркиваем границу и обводку */
.l-section-cat-sort__btn[aria-expanded="true"],
.l-section-cat-filter__btn[aria-expanded="true"] {
  border-color: #2493e9;
  box-shadow: 0 0 0 3px rgba(36, 147, 233, 0.16);
}

/* Иконки/стрелка — аккуратный поворот у сортировки */
.l-section-cat-sort__btn svg,
.l-section-cat-filter__btn svg,
.l-section-cat-sort__btn i,
.l-section-cat-filter__btn i {
  font-size: 1em;
  line-height: 0;
  flex: 0 0 auto;
}

.l-section-cat-sort__caret {
  transition: transform 0.24s cubic-bezier(0.4, 0, 0.2, 1);
}

.l-section-cat-sort.is-open .l-section-cat-sort__caret {
  transform: rotate(180deg);
}

/* Disabled / aria-disabled */
.l-section-cat-sort__btn:disabled,
.l-section-cat-filter__btn:disabled,
.l-section-cat-sort__btn[aria-disabled="true"],
.l-section-cat-filter__btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* Ripple для фильтров — оставить, но ограничить в пределах кнопки */
.l-section-cat-filter__btn {
  position: relative;
  overflow: hidden;
}

/* ------------------------------------------------------------------------------- */

/* SECTION CATEGORY */
section.section-category {
  grid-column: 1/13;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.section-category-header {
  width: 100%;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.section-category-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-category-title i {
  font-size: 32px;
  color: #2493e9;
}

.section-category-title h1 {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  margin: 0;
}

.section-category-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-category-qb {
  display: flex;
  align-items: center;
  gap: 15px;
}

.section-category-content {
  width: 100%;
}

.section-category-bar {
  display: flex;
  align-items: center;
  gap: 20px;
}

.section-category-qb {
}

article.item-cat-article {
}

/* ------------------------------------------------------------------------------- */

/* CATEGORY ARTICLES  */
.cat-articles-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ------------------------------------------------------------------------------- */

/* CATEGORY DOCUMENTS  */
.cat-doc-content {
}

.cat-doc-tb {
  font-weight: 600;
  font-size: 0.9rem;
  color: #355878;
  border-bottom: 1px solid #c8d7e4;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 135px 35px 35px 35px 65px;
  gap: 15px;
  padding: 0 10px 10px 10px;
  align-items: center;
}

article.item-cat-doc {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 135px 35px 35px 35px 65px;
  gap: 15px;
  padding: 10px 10px 10px 10px;
  align-items: center;
}

.item-cat-doc:hover {
  background: rgba(136, 175, 244, 0.3);
}

.item-cat-doc-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-cat-doc-title h2 {
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.item-cat-doc-title h2 a:hover {
  color: #0a7cff;
}

.item-cat-doc-cat {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-cat-doc-cat a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}

.item-cat-doc-cat a img {
  max-height: 18px;
}

.item-cat-doc-cat a span {
  color: #1a73e8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-cat-doc-type {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.item-cat-doc-type span {
  background: #eff6ff;
  color: #3b82f6;
  padding: 3px 5px 3px 5px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  width: fit-content;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-cat-doc-date {
  font-weight: 500;
}

.item-cat-doc-date-today {
  color: #149351;
}

.item-cat-doc-date-yesterday {
  color: #988b0f;
}

/* ------------------------------------------------------------------------------- */

/* ITEM ARTICLE */
article.item-article {
  grid-column: 1/10;
}

.item-article-poster {
}

.item-article-poster img {
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.item-article-bk {
  background: rgba(226, 231, 243, 0.5);
  padding: 20px;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.item-article-cat {
  margin-bottom: 5px;
}

.item-article-cat a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-article-cat a:hover,
.item-article-cat a span:hover {
  color: #104284;
}

.item-article-cat a img {
  max-height: 18px;
}

.item-article-cat a span {
  color: #1a73e8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-article-title {
}

.item-article-title h1 {
  margin: 0;
  font-weight: 700;
  line-height: 1.15;
  font-size: 32px;
}

.item-article-stat {
  margin-top: 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.2;
}

.item-article-meta-chip {
  display: inline -flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  min-height: 24px;
  font-variant-numeric: tabular-nums;
}

.item-article-content {
  margin-top: 20px;
}

.item-article-footer {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid #d5dae4;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  color: #64748b;
  font-size: 14px;
}
.item-article-footer-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.item-article-footer-btn {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.related-articles {
  grid-column: 10/13;
}

.related-articles-list {
  display: flex;
  flex-wrap: wrap;
}

.item-related-article {
  width: 100%;
}

.item-related-article {
  border-bottom: 1px solid #e0e0e0;
  padding: 10px 5px 10px 5px;
}

.item-related-article_title {
  font-weight: 600;
  line-height: 1.2;
}

.item-related-article_meta {
  margin-top: 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.2;
}

.item-related-article_chip {
}

/* ------------------------------------------------------------------------------- */

/* ITEM DOCUMENTS */
article.item-doc {
  grid-column: 1/10;
  background: rgba(226, 231, 243, 0.5);
  padding: 20px;
  border-radius: 10px;
}

.item-doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

.item-doc-cat a {
  display: flex;
  align-items: center;
  gap: 5px;
}

.item-doc-cat a img {
  height: 24px;
}

.item-doc-cat a span {
  font-weight: 500;
}

.item-doc-fd {
  display: flex;
  align-items: center;
  gap: 10px;
}

.item-doc-type {
  background: #eff6ff;
  color: #3b82f6;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  width: fit-content;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-doc-form {
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  width: fit-content;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-doc-title {
}

.item-doc-title h1 {
  margin: 0;
  font-weight: 700;
  line-height: 1.15;
  font-size: 32px;
}

.item-doc-stat {
  margin-top: 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.2;
}

.item-doc-meta-chip {
  display: inline -flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  min-height: 24px;
  font-variant-numeric: tabular-nums;
}

.item-doc-content {
  margin-top: 20px;
}

.item-doc-footer {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid #d5dae4;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  color: #64748b;
  font-size: 14px;
}

.item-doc-oth {
  grid-column: 10/13;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.item-doc-down-desc {
  color: var(--muted, rgba(0, 0, 0, 0.55));
  font-weight: 450;
  margin-top: -2px;
}

/* Список — адаптивная сетка */
.item-doc-bk-down-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  margin: 10px 0 0 0;
  padding: 0;
  list-style: none;
}

.l-item-doc-bk-down-item {
  display: block;
}

/* Ссылка-карточка */
.item-doc-bk-down-link {
  --ring: rgba(43, 112, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
  border: 1px solid #e7e9ee;
  border-radius: 12px;
  padding: 10px 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
    transform 0.08s ease;
}

.item-doc-bk-down-link:hover {
  border-color: #d6dae3;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
  transform: translateY(-1px);
}

.item-doc-bk-down-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--ring);
  border-color: #b8c6ff;
}

/* Левая часть: иконка + текст + размер */
.item-doc-bk-down-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.item-doc-ico {
  font-size: 22px;
  opacity: 0.9;
}

.item-doc-ico-word {
  color: #2b579a;
}

.item-doc-ico-excel {
  color: #217346;
}

.item-doc-ico-pdf {
  color: #d93025;
}

.item-doc-ico-file {
  color: #6b7280;
}

/* ------------------------------------------------------------------------------- */

/* CATEGORY TERMS */
.cat-terms-tb {
  font-weight: 600;
  font-size: 0.9rem;
  color: #355878;
  border-bottom: 1px solid #c8d7e4;
  display: grid;
  grid-template-columns: 1.5fr 1fr 35px 35px 35px;
  gap: 15px;
  padding: 0 10px 10px 10px;
  align-items: center;
}

article.item-cat-term {
  display: grid;
  grid-template-columns: 1.5fr 1fr 35px 35px 35px;
  gap: 15px;
  padding: 10px 10px 10px 10px;
  align-items: center;
}

.item-cat-term:hover {
  background: rgba(136, 175, 244, 0.3);
}

.item-cat-term-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-cat-term-title h2 {
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.item-cat-term-title h2 a:hover {
  color: #0a7cff;
}

.item-cat-term-cat {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-cat-term-cat a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}

.item-cat-term a img {
  max-height: 18px;
}

.item-cat-term a span {
  color: #1a73e8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ------------------------------------------------------------------------------- */

/* ITEM TERM */
article.item-term {
  grid-column: 1/10;
  background: rgba(226, 231, 243, 0.5);
  padding: 20px;
  border-radius: 10px;
}

.item-term-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

.item-term-cat a {
  display: flex;
  align-items: center;
  gap: 5px;
}

.item-term-cat a img {
  height: 24px;
}

.item-term-cat a span {
  font-weight: 500;
}

.item-term-cat-title {
}

.item-term-cat-title h1 {
  margin: 0;
  font-weight: 700;
  line-height: 1.15;
  font-size: 32px;
}

.item-term-stat {
  margin-top: 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.2;
}

.item-term-content {
  margin-top: 20px;
}

.item-term-footer {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid #d5dae4;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  color: #64748b;
  font-size: 14px;
}

/* ------------------------------------------------------------------------------- */

/* CATEGORY NPA */
.cat-npa-tb {
  font-weight: 600;
  font-size: 0.9rem;
  color: #355878;
  border-bottom: 1px solid #c8d7e4;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 35px 35px 35px;
  gap: 15px;
  padding: 0 10px 10px 10px;
  align-items: center;
}

article.item-cat-npa {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 35px 35px 35px;
  gap: 15px;
  padding: 10px 10px 10px 10px;
  align-items: center;
}

.item-cat-npa:hover {
  background: rgba(136, 175, 244, 0.3);
}

.item-cat-npa-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-cat-npa-title h2 {
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.item-cat-npa-title h2 a:hover {
  color: #0a7cff;
}

.item-cat-npa-type {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-cat-npa-type img {
  max-height: 18px;
}

.item-cat-npa-type span {
  color: #1a73e8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-cat-npa-cat {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-cat-npa-cat img {
  max-height: 18px;
}

.item-cat-npa-cat span {
  color: #1a73e8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ------------------------------------------------------------------------------- */

/* ITEM NPA */
article.item-npa {
  grid-column: 1/13;
  background: rgba(226, 231, 243, 0.5);
  padding: 20px;
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.item-npa-status {
  width: 100%;
  padding: 5px;
  border-radius: 5px;
  text-align: center;
  color: rgba(255, 255, 255, 1);
  font-weight: 500;
}

.item-npa-status-active {
  background: rgba(3, 155, 51, 1);
}

.item-npa-status-revorked {
}

.item-npa-status-not-entered {
}

.item-npa-revoked-details {
}

.item-npa-qb {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: end;
}

.item-npa-emblem {
  width: 100%;
  display: flex;
  justify-content: center;
}

.item-npa-emblem img {
  max-height: 384px;
}

.item-npa-title {
  width: 100%;
  text-align: center;
}

.item-npa-title h1 {
}

.item-npa-text {
  width: 100%;
}

.item-npa-footer {
  width: 100%;
}

.item-npa-structure {
  width: 100%;
}

.item-npa-structure-title {
  text-align: center;
  font-weight: 500;
}

.item-npa-structure ul {
  list-style: none;
}

.item-npa-structure-chapter {
  font-weight: 600;
}

.item-npa-structure-article {
  font-weight: 450;
}

/* ------------------------------------------------------------------------------- */

/* PAGE SITEMAP */
.smap {
  --c: #111;
  --m: #6b7280;
  --b: #e5e7eb;
  --bg: #fafafa;
  --p: 18px;
  --r: 16px;
  --sh: 0 2px 10px rgba(0, 0, 0, 0.06);
  grid-column: 1 / 13;
}

.smap__header {
  background: #fff;
  padding: clamp(16px, 2.2vw, 24px);
  border: 1px solid #e8eef8;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(10, 31, 68, 0.06);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 10px;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 18px;
}

.smap__ic {
  font-size: 32px;
  color: #007bff;
}

.smap__title {
  max-width: 685px;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  margin: 0;
  display: flex;
  gap: 5px;
  align-items: center;
}

.smap__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.smap__search {
  min-width: 280px;
  flex: 1 1 280px;
  padding: 10px 12px;
  border: 1px solid var(--b);
  border-radius: 10px;
  outline: none;
}

.smap__search:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.smap__btn {
  padding: 10px 12px;
  border: 1px solid var(--b);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.smap__btn:hover {
  background: #f8fafc;
}

.smap__btn--ghost {
  background: transparent;
}

.smap__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

@media (max-width: 1024px) {
  .smap__grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 640px) {
  .smap__grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

.smap__card {
  grid-column: span 6;
  background: #fff;
  border: 1px solid var(--b);
  border-radius: var(--r);
  box-shadow: var(--sh);
  overflow: hidden;
}

@media (max-width: 640px) {
  .smap__card {
    grid-column: 1/-1;
  }
}

.smap__summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px var(--p);
  cursor: pointer;
  list-style: none;
}

.smap__summary::-webkit-details-marker {
  display: none;
}

.smap__icon {
  font-size: 20px;
  line-height: 1;
}

.smap__stitle {
  font-weight: 700;
}

.smap__badge {
  margin-left: auto;
  background: #f1f5f9;
  border: 1px solid var(--b);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--m);
}

.smap__list {
  padding: 0 var(--p) 2px;
  margin: 0;
  list-style: none;
}

.smap__item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px dashed #eef2f7;
}

.smap__item:last-child {
  border-bottom: none;
}

.smap__item.is-hidden {
  display: none;
}

.smap__link {
  text-decoration: none;
  color: #0f172a;
}

.smap__link:hover {
  text-decoration: underline;
}

.smap__link-title {
  font-weight: 500;
}

.smap__date {
  margin-left: auto;
  font-size: 12px;
  color: var(--m);
}

.smap__footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px var(--p) 16px;
}

.smap__more {
  padding: 8px 12px;
  border: 1px solid var(--b);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.smap__more:hover {
  background: #f8fafc;
}

.smap__hint {
  font-size: 12px;
  color: var(--m);
}

.smap__empty {
  padding: 12px var(--p);
  color: var(--m);
}

.smap__muted {
  color: var(--m);
}

mark.smap__mark {
  background: #fde68a;
  border-radius: 4px;
  padding: 0 2px;
}

/* ------------------------------------------------------------------------------- */
